package com.sa.user.api.feignapi;

import cn.dev33.satoken.util.SaResult;
import com.sa.user.api.dto.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author Architecture Station
 * @version 1.0
 * @website 
 */
@FeignClient(name = "user-service")
public interface UserApi {
    @PostMapping("/api/users/login")
    public SaResult login(@RequestBody UserDTO userDTO);

    @PostMapping("/api/users/test")
    public SaResult test();
}
